
  var customerDatePeriodMap = new Map();
  var customerDateHeartMap  = new Map();
  var customerDateMoonMap  = new Map();
  var customerDateMedicineMap = new Map();
  var customerDateDrinkMap = new Map();
  var customerDatePlaneMap = new Map();
  var customerDateTemperatureMap = new Map();

  //所有预测数据
  var allMensesStartDateArray = new Array();
  var allMensesEndDateArray = new Array();

  //真实已经发生过的月经
  var customerDataMensesStartDateArray = new Array();
  var mensesShowLen;
  var customerDataMensesEndDateArray = new Array();

  function firstShowMensesChart(){
  	initCustomerData();
  	initMensesChartData();

    setEChartConfig();
	drawMensesChart();

	firstShowMensesChartDetail();
  }

  function initCustomerData(){
      var customerDatePeriodStr = localStorage.getItem("customerDatePeriodKey");
	  var customerDateHeartStr = localStorage.getItem("customerDateHeartKey");
	  var customerDateMoonStr = localStorage.getItem("customerDateMoonKey");
	  var customerDateMedicineStr = localStorage.getItem("customerDateMedicineKey");
	  var customerDateDrinkStr = localStorage.getItem("customerDateDrinkKey");
	  var customerDatePlaneStr = localStorage.getItem("customerDatePlaneKey");
      var customerDateMensesStr = localStorage.getItem("customerDateMensesKey");
      var customerDateTemperatureStr = localStorage.getItem("customerDateTemperatureKey");

      customerDatePeriodMap = getDatePeriodMap(customerDatePeriodStr);
	  customerDateHeartMap = getDateHeartMap(customerDateHeartStr);
	  customerDateMoonMap = getDateMoonMap(customerDateMoonStr);
	  customerDateMedicineMap = getDateMedicineMap(customerDateMedicineStr);
	  customerDateDrinkMap = getDateDrinkMap(customerDateDrinkStr);
	  customerDatePlaneMap = getDatePlaneMap(customerDatePlaneStr);
      customerDateTemperatureMap = getDateTemperatureMap(customerDateTemperatureStr);

	  initMensesStartDateArray();
      initMensesEndDateArray();
  }

  function initMensesStartDateArray(){
  	  var customerDataMensesStartDateArrayStr = localStorage.getItem("customerDataMensesStartDateArrayStrKey");
  	  customerDataMensesStartDateArray = customerDataMensesStartDateArrayStr.split(",");
  	  mensesShowLen = customerDataMensesStartDateArray.length - 1;
  }

  function initMensesEndDateArray() {
      var customerDataMensesEndDateArrayStr = localStorage.getItem("customerDataMensesEndDateArrayStrKey");
  	  customerDataMensesEndDateArray = customerDataMensesEndDateArrayStr.split(",");
  }